<?php
	include_once '../../../ketnoi.php';
	$MaKyHan = $_GET['makyhan'];
	$MaHTLanhLai = $_GET['htlanhlai'];
	if($MaKyHan==0||$MaHTLanhLai==0)
	{
		echo "true";
		exit();
	}
	$sqlkyhan = "SELECT * FROM loaikyhan WHERE MaLoaiKyHan = $MaKyHan";
	$kqkyhan = mysql_query($sqlkyhan);
	$dong = mysql_fetch_array($kqkyhan);
	$KyHan = $dong['KyHan'];
	$sqlhtlanhlai = "SELECT * FROM hinhthuclanhlai WHERE MaHTLanhLai = $MaHTLanhLai";
	$kqhtlanhlai = mysql_query($sqlhtlanhlai);
	$dong = mysql_fetch_array($kqhtlanhlai);
	$TGLanhLai = $dong['ThoiGianLanhLai'];
	if($KyHan==0)
	{
		echo "true";
		exit();
	}
	if($KyHan < $TGLanhLai)
		echo "false";
	else 
		echo "true";
?>